<template>
    <div>
        <div style="width: 50%;height: 50%;margin: 0px auto;">
            <el-input placeholder="请输入设备编号" v-model="deviceId">
                <template slot="prepend">设备编号:</template>
            </el-input>
        </div>
        <el-button type="primary" @click="initDevice()">初始化设备</el-button>
    </div>
</template>

<script>

export default {
    data() {
        return {
            deviceId: ""
        }
    },
    methods: {
        initDevice() {
            console.error(this.deviceId);
            //发送请求
            
        }
    }
}

</script>